﻿using System.ComponentModel.DataAnnotations;
using WebAPI.Util;

namespace WebAPI.Models;
public class ModuleListRequest : BasePageInput
{
    public string? ModuleName { get; set; }
    public bool isParent { get; set; }

    public string? Description { get; set; }

    public string? Enable { get; set; }
}


public class ModuleListResponse
{
    public int Id { get; set; }
    public string? ModuleName { get; set; }
    public string ParentModuleName { get; set; }
    public string? Description { get; set; }
    public int ParentId { get; set; }
    public bool Enable { get; set; }
    public string CreateDate { get; set; }
    public string CreateUser { get; set; } = null!;
    public string UpdateDate { get; set; }
    public string UpdateUser { get; set; } = null!;
}

public class InsertFrIpModuleRequest
{
    public string ModuleName { get; set; }
    public string? Description { get; set; }
    public int ParentId { get; set; }
    public bool Enable { get; set; }
}

public class UpdateFrIpModuleRequest
{
    public int Id { get; set; }
    public string ModuleName { get; set; }
    public string? Description { get; set; }
    public int ParentId { get; set; }
    public bool Enable { get; set; }
}

public class EnableFrIpModuleRequest
{
    [Required(ErrorMessage = "Id is required")]
    public string ids { get; set; }

    public bool enable { get; set; }
}

public class ModuleListByParentIdResponse
{
    public int Id { get; set; }
    public string ModuleName { get; set; }
}